-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/rsaes oaep #68
Feature/rsaes oaep #68
Conversation
Fix github action build fail due to:
Feature/force binary
pyas2lib/tests/test_cms.py
Outdated
@@ -101,3 +178,12 @@ def test_encryption(): | |||
encrypted_data = cms.encrypt_message(b"data", "des_64_cbc", encrypt_cert) | |||
with pytest.raises(AS2Exception): | |||
cms.decrypt_message(encrypted_data, decrypt_key) | |||
|
|||
# Test faulty key encryption algorithm | |||
with pytest.raises(AS2Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert the message as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
pyas2lib/tests/test_cms.py
Outdated
|
||
# Test unsupported key encryption algorithm | ||
encrypted_data = encrypted_data_with_faulty_key_algo() | ||
with pytest.raises(AS2Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert the message as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
pyas2lib/tests/test_cms.py
Outdated
@@ -22,6 +24,68 @@ | |||
).dump() | |||
|
|||
|
|||
def encrypted_data_with_faulty_key_algo(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_encrypted_data_with_faulty_key_algo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Extending partner to accept key encryption algo and pass that down.
Added option for rsaes_oaep key encryption algo.
Relates to #62